﻿using Corina.DataContext.Master;
using Corina.Datamodel.DataObject;
using Corina.Enumerations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace Corina.Webservice.Cydee
{
    /// <summary>
    /// Summary description for Core
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class Core : WebserviceBase
    {

        [WebMethod]
        public ResultInfo Login(string account, string password)
        {
            return GetInstance<ManagerMaster>().Login(account, password);
        }

        [WebMethod]
        public ResultInfo GetFetchedTopurl(string account, string password)
        {
            return GetInstance<WeburlTopMaster>().GetFetchedTopurl(account, password, PlatformTypeValue.Manager, AccountTypeValue.Manager);
        }

        [WebMethod]
        public ResultInfo GetFetchedUrl(string account, string password)
        {
            return GetInstance<WeburlMaster>().GetFetchedUrl(account, password, PlatformTypeValue.Manager, AccountTypeValue.Manager);
        }
    }
}
